﻿using Models.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using yymbDAL;

namespace yymbBLL
{
    public class LikeManger
    {
        private LikeService db;
        public LikeManger()
        {
            db = new LikeService();
        }
        /// <summary>
        /// 点赞的方法
        /// </summary>
        /// <returns></returns>
        public int Fabulous(int Mid, int Userid)
        {
            return db.Fabulous(Mid, Userid);
        }
        /// <summary>
        /// 评论的方法
        /// </summary>
        /// <returns></returns>
        public bool Commentary(Comment comment)
        {
            return db.Commentary(comment);
        }
        /// <summary>
        /// 关注的方法
        /// </summary>
        /// <returns></returns>
        public int Follow(int Mid, int Userid)//Mid 当前页面的用户ID   uid登录用户的id
        {

            return db.Follow(Mid, Userid);

        }
        /// <summary>
        /// 页面显示是否关注的方法
        /// </summary>
        /// <returns></returns>
        public bool Foll(int Mid, int Userid)
        {
            return db.Foll(Mid, Userid);
        }
        /// <summary>
        /// 显示喜欢的数量
        /// </summary>
        /// <returns></returns>
        public int Like(int id)
        {
            return db.Like(id);

        }
        /// <summary>
        /// 显示人气
        /// </summary>
        /// <returns></returns>
        public int popu(int id)
        {
            return db.popu(id);
        }
    }
}
